Hi all, Folder f = current string srcName = "/A project/A module/A object" string tgtName = "/A project/B module/B object" string lnkName = "/A project/masterLinks" string desc = "The project's master link" bool over_ride = false string msg = addLinkModuleDescriptor(f, srcName, tgtName, over_ride, lnkName, desc) print msg
Aven_HIT - Wed Feb 24 01:06:54 EST 2010 |
Re: Implement "Create Link" Through DXL Link operators Two operators create links, as shown in the following syntax: Object source -> string linkModuleName -> Object target Object target <- string linkModuleName <- Object source The -> operator creates an outgoing link from object source to object target via link module linkModuleName. If linkModuleName is omitted the link goes via the default link module (see Default link module. The <- operator creates an incoming link from object source to object target via link module linkModuleName. If linkModuleName is omitted the link goes via the default link module. These operators are also used in the for loops defined in Finding links. Example This example creates a link from the current object of the current module to the first object of module target via the link module tested by. (current Object) -> "tested by" -> (first read "target") This example creates a link to the current object of the current module from the first object of module source via the link module tested by. Because links are stored in the source module, you must open source for editing to allow the link to be created. (current Object) <- "tested by" <- (first edit "source") |
Re: Implement "Create Link" Through DXL
Yup. Also, its of type 'Link': noError() Link lnk = oSource ->NameFull_LinkMod ->oTarget string ErrMess = lastError() if (null lnk or !null ErrMess) ...
|
Re: Implement "Create Link" Through DXL
|